import request from '@/utils/request'
var qs = require('qs')
// 查询人员信息列表
export function listUser(query) {
  return request({
    url: '/qb/user/list',
    method: 'get',
    params: query
  })
}
// 查询审核人员信息列表
export function shListUser(query) {
  return request({
    url: '/qb/user/shlist',
    method: 'get',
    params: query
  })
}
// 审核通过
export function shPassUser(data) {
  return request({
    url: '/qb/user/pass',
    method: 'post',
    params: data
  })
}
// 解绑
export function unBinWxUser(id) {
  return request({
    url: 'qb/user/unBindWx/'+ id,
    method: 'delete',
  })
}

// 查询人员信息详细
export function getUser(id) {
  return request({
    url: '/qb/user/' + id,
    method: 'get'
  })
}

// 新增人员信息
export function addUser(data) {
  return request({
    url: '/qb/user',
    method: 'post',
    data: data
  })
}

// 修改人员信息
export function updateUser(data) {
  return request({
    url: '/qb/user',
    method: 'put',
    data: data
  })
}

// 删除人员信息
export function delUser(id) {
  return request({
    url: '/qb/user/' + id,
    method: 'delete'
  })
}

// 导出人员信息
export function exportUser(query) {
  return request({
    url: '/user/user/export',
    method: 'get',
    params: query
  })
}